﻿#include "form.h"
#include "ui_form.h"

Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);

//    void(QSpinBox:: *spsignal)(int)=&QSpinBox::valueChanged;
//    connect(ui->smallSpinBox1,spsignal,ui->smallSlider1,&QSlider::setValue);
//    //滑动，数字改变。
//    connect(ui->smallSlider1,&QSlider::valueChanged,ui->smallSpinBox1,&QSpinBox::setValue);

}

Form::~Form()
{
    delete ui;
}
//void Form::setNum(int num)
//{
//    ui->smallSpinBox1->setValue(num);
//}

//int Form::getNum()
//{
//    return ui->smallSpinBox1->value();
//}

//void Form::on_smallSpinBox1_valueChanged(int arg1)
//{
//    ui->smallSpinBox1->setValue(arg1);
//}
